package xyz.poke.business.tool.convert;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import xyz.poke.business.tool.dto.UserDTO;
import xyz.poke.business.tool.entity.User;
import xyz.poke.business.tool.vo.UserVo;

/**
 * @author 迫壳
 * @date 2024/3/6 22:42
 */
@Mapper(componentModel = "spring")
public interface UserConvert {

    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    UserVo toVo(UserDTO user);

    UserDTO toDTO(User user);

}
